<?php get_header();?>

<ul class="crumbs cf">
    <li><a href="index.html" class="dc-icon crumbs-main"></a><i class="dc-icon next-icon"></i></li>
    <li><a href="index.html">首页</a><i class="dc-icon next-icon"></i></li>
    <li><a href="javascript:void(0)">最新动态</a></li>
</ul>

<div class="banner swiper-container flexslider latest-banner">
    <ul class="swiper-wrapper slides">
        <?php
            $args = array(
                'post_type' => 'post',
                'post_status' => 'publish',
                'post__in' => explode(',',get_field('post_id'))
                );
            query_posts($args);
            if (have_posts()) :  
              while ($wp_query->have_posts()) :
                  $wp_query->the_post(); 
                    if(get_fields()):
        ?>
        <li class="swiper-slide">
            <div class="img-detail">
                <img src="<?php the_field('img'); ?>">
                <div class="detail">
                    <h5><?php the_title();?></h5>
                    <p><?php the_field('description')?></p>
                </div>
            </div>
        </li>
        <?php endif;endwhile; endif;wp_reset_query();?>   
    </ul>
    <div class="arrow dc-icon swiper-button-next">
    </div>
    <div class="arrow dc-icon swiper-button-prev">
    </div>
</div>

<script src='<?php bloginfo('template_url'); ?>/lib/_require.js' data-main='<?php bloginfo('template_url'); ?>/js/common.js'></script>

<?php get_footer();?>